package com.xiaobai.design_pattern.abstractfactory.createrole;

import com.xiaobai.design_pattern.abstractfactory.productrole.ProductA;
import com.xiaobai.design_pattern.abstractfactory.productrole.ProductA1;
import com.xiaobai.design_pattern.abstractfactory.productrole.ProductB;
import com.xiaobai.design_pattern.abstractfactory.productrole.ProductB1;

/**
 * @author wangtw
 * @ClassName ConcreteFactory1
 * @description: 具体工厂1
 * @date 2023/11/2121:55
 */
public class ConcreteFactory1 implements AbstractFactory{

    @Override
    public ProductA factoryA() {
        return new ProductA1();
    }

    @Override
    public ProductB factoryB() {
        return new ProductB1();
    }
}
